#include "pet.h"


Pet::Pet( const char *pName, const char *pSpeciesName, int age, float weight )
: m_name( pName ), m_species( pSpeciesName ), m_weight( weight ), m_age( age )
{

	// "this" keyword access YOURSELF as a PIONTER!
	//this->m_name = m_name;


	/*m_name		= pName;
	m_species	= pSpeciesName;
	m_age		= age;
	m_weight	= weight;*/

	pNum = new int;

	cout << "Pet::Constructor has been called." << endl;
}


Pet::~Pet( void )
{
	delete pNum;
	cout << "Pet::Destructor has been called." << endl;
}

void Pet::Show( void )
{
	cout << "Name: " << m_name << endl;
	cout << "Species: " << m_species << endl;
	cout << "Weight: " << m_weight << endl;
	cout << "Age: " << m_age << endl;
}
